package com.css.bjdt_core.cell.entity;

import java.util.Date;

import com.css.bjdt_core.util.CommonUtil;

import lombok.Data;

@Data
public class CellData extends Cell {
	private String cellDataId;

	private String cellValue;

	private String historyCellValue;

	private String dzzId;

	//1是汇总数据，为空的话是非汇总数据
	private String sumStatus;

	private String batchId;

	private Date insertDate;

	public CellData(Cell cell, String cellValue, String dzzId) {
		this.cellDataId = CommonUtil.getUUID();
		if (cell != null) {
			this.cellId = cell.getCellId();
			this.templateId = cell.getTemplateId();
			this.cellType = cell.getCellType();
			this.absRowNum = cell.getAbsRowNum();
			this.absColNum = cell.getAbsColNum();
			this.relRowNum = cell.getRelRowNum();
			this.relColNum = cell.getRelColNum();
		}
		this.cellValue = cellValue;
		this.historyCellValue = cellValue;
		this.dzzId = dzzId;
	}

	public CellData() {
		this(null, null, null);
	}
}
